<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>

	<script type="text/javascript">
	$(document).ready(function() {
		$('#popup_change_password').click(function() {
	         ISS.Popup.Windows.Show_Modal("Change Password", ISS.lang.getBasePath()+"index.php/member/login/request_change_password", null, 300, 300, null);
	 	});
	}); 
	</script>

	<div id="loginContainer">
		<form id="frmLogin" action="<?php echo url::base(); ?>index.php/member/login/signout/" name="frmLogin" method="post">
	    
		    <div id="loginBlock">
		        <div id="loginBlockTop">
		          <h3>ยินดีต้อนรับ</h3>
		          <p>คุณ <?php echo $username;?></p>
		        </div>
		        <div id="loginBlockBody">
		        	<?php 
		        	if (!empty($picture)) {
						echo '<img id=imgLoginPicture  alt="'. html::specialchars($username) .'" src="'. url::base() . html::specialchars($picture) .'" />';
					}
		        	?>
					<br/>
			     	<a href="#" id="popup_change_password">เปลี่ยนรหัสผ่าน</a>
		        </div>
		     </div>
		     <div id="loginBlockBot">
		     	<input type="submit" id="btnLogout" name="btnLogout" value="ลงชื่อออกจากระบบ" />
		     </div>
		 </form>
	 </div>